/*
Copyright (C) 2009-2010 Xanadu Development Team

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; version 2
of the License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
*/

#include "../client/MapNPCData.h"
#include "NPC.h"

NPC::NPC(int id, MapNPCData* data) {
	this->id = id;
	Position pos;
	pos.x = data->getX();
	pos.y = data->getCY();
	this->pos = pos;
	npcid = data->getID();
	fh = data->getFH();
	rx0 = data->getRX0();
	rx1 = data->getRX1();
	flip = data->getFlip();
}